package com.itcast.Array.DemoArray;

import com.itcast.Array.A;
import com.itcast.Array.Student;

/*
要写注释哦!!!
*/
public class Test {
    public static void main(String[] args) {
        com.itcast.Array.Student[] arr = {
                new com.itcast.Array.Student("aaa", 18, 170, 65, 100),
                new com.itcast.Array.Student("bbb", 17, 179, 70, 10),
                new com.itcast.Array.Student("ccc", 15, 177, 55, 20),
                new com.itcast.Array.Student("ddd", 19, 176, 50, 15),
                new Student("eee", 16, 180, 52, 90),
        };
        MyArray.sort(arr, new A<Student>() {
            @Override
            public int aaa(Student left, Student right) {
                return left.getAge() - right.getAge();
            }
        });
    }
}
